package com.ruoyi.kq.mapper;

import java.util.List;
import java.util.Map;

import com.ruoyi.kq.domain.WorkRecord;
import org.apache.ibatis.annotations.Param;

/**
 * kqMapper接口
 *
 * @author huangdelu
 * @date 2025-03-17
 */
public interface WorkRecordMapper
{
    /**
     * 查询kq
     *
     * @param id kq主键
     * @return kq
     */
    public WorkRecord selectWorkRecordById(String id);

    /**
     * 查询kq列表
     *
     * @param workRecord kq
     * @return kq集合
     */
    public List<WorkRecord> selectWorkRecordList(WorkRecord workRecord);

    /**
     * 新增kq
     *
     * @param workRecord kq
     * @return 结果
     */
    public int insertWorkRecord(WorkRecord workRecord);

    /**
     * 修改kq
     *
     * @param workRecord kq
     * @return 结果
     */
    public int updateWorkRecord(WorkRecord workRecord);

    /**
     * 删除kq
     *
     * @param id kq主键
     * @return 结果
     */
    public int deleteWorkRecordById(String id);

    /**
     * 批量删除kq
     *
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteWorkRecordByIds(String[] ids);

    /**
     * 查询上班时间没打卡的
     *
     * @param userId,data
     * @return 结果
     */
    public int selectPeoCount(String userId,String data);

    /**
     * 查询指定时间下班时间为空的人
     *
     * @param data
     * @return 结果
     */
    public List<WorkRecord> selectEndTimeIsNo(String data);

    List<WorkRecord> selectWorkRecordByUserIdAndDate(@Param("userId") Long userId, @Param("date") String date);
}
